package com.huikeportal.dao;

import java.util.List;
import com.huikeportal.model.RoleInfo;
import com.huikeportal.model.RolePageButton;
import com.huikeportal.model.TreeHtml;
import com.huikeportal.model.UserInfo;
import com.huikeportal.model.WordBook;
import com.huikeportal.model.common.SqlParameter;

public interface RoleMapper {

	List<RolePageButton> getButtonById(String roleId) throws Exception;

	List<TreeHtml> getRoleById(UserInfo userInfo) throws Exception;

	Long getRoleIdByUser(String userId) throws Exception;

	List<WordBook> getButtonInfo(SqlParameter sql) throws Exception;

	String getUuid() throws Exception;

	RoleInfo getRoleByRoleId(String roleId) throws Exception;

	void deleteByRoleId(RoleInfo roleInfo) throws Exception;

	Integer selectChildRole(Long parentId) throws Exception;

	Integer selectCustomByRoleId(String roleId) throws Exception;

}
